package cz.zcu.fav.rat.managed.locale;

import java.util.ResourceBundle;

import javax.faces.context.FacesContext;

public class LocaleMessageFactory
{

	
	
	
	public static String getLocale(String key)
	{
		FacesContext context = FacesContext.getCurrentInstance();
		ResourceBundle bundle = context.getApplication().getResourceBundle(
				context, "msg");
		return bundle.getString(key);

	}

}
